<template>
  <div class="envShow">
    <el-form :model="searchForm" label-width="30%" size="small">
      <el-row :gutter="24">
        <el-col :span="8">
          <el-form-item label="模板ID ：">
            <el-input type="text" v-model="searchForm.tmplId" maxlength="20" readonly
                      placeholder="不可编辑，点击提交后回显"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="7">
          <el-form-item label="模板名称 ：">
            <el-input type="text" v-model="searchForm.tmplName" maxlength="20" clearable
                      placeholder="请输入模板名称"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="7">
          <el-form-item label="链接地址 ：">
            <el-input type="text" v-model="searchForm.tmplLink" maxlength="20" clearable
                      placeholder="请输入链接地址"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="24">
        <el-col :span="10">
          <el-form-item label-width="0px">
          </el-form-item>
        </el-col>
        <el-col :span="4">
          <el-form-item label-width="0px">
            <el-button type="primary" size="small" @click="getData()" icon="el-icon-search">提交</el-button>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
  export default {
    name: 'envShow',
    data() {
      return {
        searchForm: {
          // 模板 ID
          tmplId: '',
          // 模板名称
          tmplName: '',
          // 模板链接地址
          tmplLink: ''
        },
        EnvPara: null
      };
    },
    mounted() {
      const vm = this;
      // vm.search();
    },
    methods: {
      getData() {
        const vm = this;
        vm.EnvPara = {
          'tmplLink': vm.searchForm.tmplLink,
        };
      },
      search() {
        const vm = this;
        vm.getData();
      },

    }
  };
</script>
<style lang='scss' scoped>
  .envShow {
    padding-top: 20px;
    border-top: 1px solid #9d9d9d;
    /*border-bottom: 1px solid #dddddd;*/
    height: 42px;
    line-height: 32px;
  }
</style>

